package fina2.dcs.common;

import java.util.ArrayList;

public class DCSUIUtil {

	public static ArrayList<Long> parseString(String str,String token) {
		ArrayList<Long> idsList = new ArrayList<Long>();
		String ids[] = str.split(token);
		for (int i = 0; i < ids.length; i++) {
			if (ids[i] == null || ids[i].trim().length() == 0) {
				continue;
			}
			idsList.add(Long.parseLong(ids[i]));
		}
		return idsList;
	}
}
